﻿import { SET_FILE, SET_PARSING, SET_ORG_GRAPH } from './actionTypes'

export default function staff(state = {}, action) {
    switch (action.type) {
        case SET_FILE:
            return { ...state, file: action.file };
        case SET_PARSING:
            return { ...state, isParsing: action.parsing };
        case SET_ORG_GRAPH:
            return { ...state, org: action.org };
        default:
            return state;
    }
}